.PHONY:all
all:cal_server cal_client

cal_client:cal_client.cc 
	g++ -o $@ $^ -ljsoncpp -std=c++11

cal_server:cal_server.cc
	g++ -o $@ $^ -lpthread -ljsoncpp -std=c++11

.PHONY:clean
clean:
	rm -f cal_client cal_server